com.atlassian.jira.rpc.soap.util
Class PluginSoapAttachmentHelper
java.lang.Object
com.atlassian.jira.rpc.soap.util.PluginSoapAttachmentHelper
public class PluginSoapAttachmentHelper
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final Logger log
attachmentsDir
private final java.lang.String attachmentsDir
UNKOWN_FILE
private static final java.lang.String UNKOWN_FILE
- See Also:
- Constant Field Values
PluginSoapAttachmentHelper
public PluginSoapAttachmentHelper()
addFiles
public java.lang.String[] addFiles(Stub stub,
java.lang.String[] fileLocations)
- This method is used for adding files as attachments for SOAP calls
- Parameters:
stub - THe Axis SOAP stub generated by AxisfileLocations - list of files to be attached from the local client file system
- Returns:
- attachment file names
saveFile
public java.io.File[] saveFile(java.lang.String[] attachmentFileNames)
throws java.rmi.RemoteException
- This method receives the attachment from the client and saves it on the temp directory on the
server
- Parameters:
attachmentFileNames - scontaining the file names of the attachments.
- Returns:
- File[] containing the File objects of the attachments.
- Throws:
java.rmi.RemoteException
relayAttachments
public void relayAttachments(Stub stub)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getDataHandlers
public javax.activation.DataHandler[] getDataHandlers()
getMessageAttachments
private AttachmentPart[] getMessageAttachments()
throws AxisFault
- extract attachments from the current request
- Returns:
- a list of attachmentparts or an empty array for no attachments support in this axis
buid/runtime
- Throws:
AxisFault
getInstance
public static PluginSoapAttachmentHelper getInstance()
byteArrayToTempFile
public java.io.File byteArrayToTempFile(byte[] buffer)